package com.zy.design.pattern.bridge;

/**
 * @author zhaoyi
 * @date 2021/6/16 13:50
 * 修正抽象化(RefinedAbstraction)角色：扩展抽象化角色，改变和修正父类对抽象化的定义。
 */
public class Square extends AbstractionShape {


    protected Square(ISize size, IColor color) {
        super(size, color);
    }

    @Override
    void draw() {
        System.out.println(size.get()+color.get() + "方");
    }
}
